package sli.sli2.pcp.service;

/**
 * Simulates return values for the management methods, return values are only mocked
 * @author Group 8, Khassraf Roman, Mueller Robin, Zischka Stefan
 *
 */
public class LoggingService {
	
    public String addLogEntry(int objectId, int terminalId, String message) {
        addLogEntry("object:" + String.valueOf(objectId) 
                + " terminal: " + String.valueOf(terminalId)
                + " message: " + message);
        return "ok";
    }
    
    public String addLogEntryAndNotify(int objectId, int terminalId, String message, String recipient, String channel) {
        addLogEntry("object:" + String.valueOf(objectId) 
                + " terminal: " + String.valueOf(terminalId)
                + " message: " + message);
        System.out.println("== SENDING TO NOTIFICATION:"
                + " recipient:" + recipient 
                + " channel: " + channel
                + " content: " + message);
        return "ok";
    }
    
    public String addLogEntry(String message) {
    	System.out.println("== SENDING TO AUDITING: " + message);
    	return "ok";
    }
}
